package com.example.main.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class MainPageAdapter constructor(fm:FragmentManager,private var fragments:List<Fragment>,behavior:Int):FragmentPagerAdapter(fm,behavior) {
    override fun getCount(): Int =fragments.size

    override fun getItem(position: Int): Fragment = fragments[position]

}